/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mweya.individuallab3;

/**
 *
 * @author mweya
 */
public class Device {
    private String serialNo;
    private String manufacturer;
    private String color;
    private double outputPower = 0;
    
    public Device() {}
    
    public Device(String serialNo, String manufacturer, String color, double outputPower) {
        this.serialNo = serialNo;
        this.manufacturer = manufacturer;
        this.color = color;
        this.outputPower = outputPower;
    }
    
    public String getSerialNo() {
        return this.serialNo;
    }
    
    
    public String getManufacturer() {
        return this.manufacturer;
    }
    
    public String getColor() {
        return this.color;
    }
    
    public double getOutputPower() {
        return this.outputPower;
    }
    
    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }
    
    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }
    
    public void setColor(String color) {
        this.color = color;
    }
    
    public void setOutputPower(double outputPower) {
        this.outputPower = outputPower;
    }
    
    public String unformattedToString() {
        return "\nSerial No.: "+serialNo+"\nManufacturer: "+manufacturer+"\nColor: "+color+"\nOutput Power: "+outputPower;
    }
    
    @Override
    public String toString() {
        return "[Device]\nSerial No.: "+serialNo+"\nManufacturer: "+manufacturer+"\nColor: "+color+"\nOutput Power: "+outputPower+"\n";
    }
}